import request from '@/utils/request'

// 查询窗口信息列表
export function listWindow(query) {
  return request({
    url: '/manage/window/list',
    method: 'get',
    params: query
  })
}

// 查询窗口信息详细
export function getWindow(windowId) {
  return request({
    url: '/manage/window/' + windowId,
    method: 'get'
  })
}

// 新增窗口信息
export function addWindow(data) {
  return request({
    url: '/manage/window',
    method: 'post',
    data: data
  })
}

// 修改窗口信息
export function updateWindow(data) {
  return request({
    url: '/manage/window',
    method: 'put',
    data: data
  })
}

// 删除窗口信息
export function delWindow(windowId) {
  return request({
    url: '/manage/window/' + windowId,
    method: 'delete'
  })
}
